<?php

namespace App\Helper;

class Sqlite extends \SQLite3
{
    protected $stmt;

    protected $result;

    public function __construct($dbname = '')
    {
        parent::open($dbname);
    }

    public function prepare($statement)
    {
        $this->stmt = parent::prepare($statement);

        return $this;
    }

    public function execute()
    {
        $this->result = $this->stmt->execute();

        return $this;
    }

    public function getStmt()
    {
        return $this->stmt;
    }

    public function getResult()
    {
        return $this->result;
    }
}